import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useLayoutStore = defineStore('layout', () => {
  const isCollapse = ref(false)
  const theme = ref('dark')

  const setCollapse = (val) => {
    isCollapse.value = val
  }

  const setTheme = (val) => {
    theme.value = val
  }

  return {
    isCollapse,
    theme,
    setCollapse,
    setTheme
  }
})
